package com.schedule.daoVo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

@Builder
@Data
@NoArgsConstructor  // ✅ 必须：无参构造函数（MyBatis、Spring 需要）
@AllArgsConstructor // ✅ 可选：全参构造（配合 builder 使用）
public class LoginVo implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    @Schema(description = "用户ID")
    private int id;

    @Schema(description = "用户名（邮箱格式）")
    private String userName;

    @Schema(description = "用户真实姓名")
    private String name;

    @Schema(description = "登录令牌（由后端返回）")
    private String token;
}
